#ifndef REQHANDLER_H
#define REQHANDLER_H

#include <QObject>

#include "protocol.h"
#include "server.h"

class ReqHandler : public QObject
{
    Q_OBJECT
public:
    PDU* pdu;

    explicit ReqHandler(QObject *parent = nullptr);

    PDU* regist    ();
    PDU* login     (QString &m_strLoginName);
    PDU* findUser  ();
    PDU* onlineUser();
    PDU* addFriend ();
    PDU* addFriendAgree();
    PDU* flushFriend(QString &m_strLoginName);
    PDU* delFriend ();
    PDU* chat();
    PDU* mkDir();

signals:

};

#endif // REQHANDLER_H
